<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: $
 */
?>
<?php
$url = ahref(sprintf($urlPatternView, $record->getMeta('type'), $row[$record->getMeta('type').'_id'], $limitOffset + $n, 1));
$stamp = strtotime($row['todo_due_date']);
$deg = rand(0, 4);
?>
<article class="record todo" id="todo-<?php echo $row['todo_id']; ?>">
	<a
		href="<?php echo $url; ?>"
		class="draggable item <?php echo $record->getMeta('type'); ?>">
		<div class="fn group calendar" style="-webkit-transform: rotate(-<?php echo $deg; ?>deg);">
			<div class="fn month"><?php echo strftime('%b', $stamp); ?></div>
			<div class="fn day"><?php echo strftime('%a. %e', $stamp); ?></div>
			<div class="fn year"><?php echo strftime('%G', $stamp); ?></div>
		</div>
		<h1>
			<?php echo $row['todo_summary'],"\n"; ?>
		</h1>
		<h2>
			<span class="label">
				<?php echo __('todo_'.$row['todo_priority'].'_priority'); ?>
			</span>
			<span class="value">
				<?php echo $row['person_name']; ?>
			</span>
		</h2>
	</a>
</article>